﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/InternalPage.Master"
  Inherits="System.Web.Mvc.ViewPage<TakeQuizViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
  Take a Quiz
</asp:Content>
<asp:Content ID="takeQuizHeader" ContentPlaceHolderID="PageHeader" runat="server">
  Take a Quiz
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
  <script type="text/javascript" src="/Scripts/Silverlight.js"></script>
  <div style="margin-top: -30px;">
    <object data="data:application/x-silverlight-2," type="application/x-silverlight-2"
      width="900px" height="450px">
      <param name="Source" value="/ClientBin/GiveAQuiz.QuizManager.xap" />
      <param name="background" value="white" />
      <param name="minRuntimeVersion" value="4.0.50303.0" />
      <param name="autoUpgrade" value="true" />
      <param name="initParams" value="id=<%= Model.QuizId %>,type=QuizTaker,name=<%= Model.Name %>,email=<%= Model.Email %>,lastVisit=<%= Model.LastVisit %>" />
      <!-- Display installation image. -->
      <!-- TODO: Replace with Styled Version -->
      <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.41109.0" style="text-decoration: none;">
        <img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight"
          style="border-style: none" />
      </a>
    </object>
  </div>
</asp:Content>
